<? 
	session_start();
	require("Admin/connect.php");
	$mal=$_REQUEST["lopid"];
	$nguoidang=$_REQUEST["nguoidang"];		
	$noidung=$_POST["noidung"];	
	$ngay=$_REQUEST["demol1"];
	$sqldate = strtotime($ngay);
	$date = date('Y-m-d');						
	$sql="insert into thongbaolop(mal,nguoidang,noidung,ngay) values('{$mal}','{$nguoidang}','{$noidung}','{$date}')";	
	mysql_query("$sql") or die("Error!");
	mysql_close();			
	header("Location:lopcuatoi.php?mal=$mal");	
?>